let foo = {
    a:1,
    fn:fn
}
function fn(b){
    console.log(this.a + b)
}

foo.fn(1)
